Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tests by using temporary Git config #22

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Improve tests by using temporary Git config #22

merged 1 commit into from
Apr 3, 2024

Conversation

arbourd
Copy link
Owner

@arbourd arbourd commented Apr 2, 2024

Adds a test fixture that generates a .gitconfig file within a temporary folder for each test. This ensures that the user running the test doesn't have their global Git config changed under them.

Also removes go-homedir in favour of stdlib.

@arbourd arbourd force-pushed the test-fix branch 9 times, most recently from 55eea1c to 8de1c98 Compare April 3, 2024 00:42
Adds a test fixture that generates a .gitconfig file within a temporary
folder for each test. This ensures that the user running the test
doesn't have their global Git config changed under them.

Also removes `go-homedir` in favour of stdlib.
@arbourd arbourd merged commit 42af2b6 into main Apr 3, 2024
4 checks passed
@arbourd arbourd deleted the test-fix branch April 3, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant